package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.common.Page;

public interface TemplateForLhjcDao {

	/**
	 * 获取列表
	 * 
	 * @return
	 */
	public List<Map> selectByConditionForPage(@Param(value = "columns") List<String> columns,
			@Param(value = "additionalColumns") String[] additionalColumns,
			@Param(value = "conditions") List<String> conditions, @Param(value = "page") Page page);
	

    public Map selectOne(@Param(value = "id") int id);
    
    public String selectDb();
    
    public List<Map<String, Object>> selectMbCode(String name);
    
    public void startEnable(@Param(value = "id") int id);
    
    public void endEnable(@Param(value = "id") int id);
    
    public void del(@Param(value = "ids") List<String> ids);
    
    public Integer countEnable(@Param(value = "ids")List<String> ids);
    
    public void add(@Param(value = "name") String name, @Param(value = "status")String status,@Param(value = "content")String content);
   
    public void modify(@Param(value = "id")int id, @Param(value = "name")String name,@Param(value = "isDel")String isDel, @Param(value = "status")String status, @Param(value = "content")String content);
	
    public int selectSameName (@Param(value = "name") String name);
    
    public int selectSameStatus (@Param(value = "id") int id, @Param(value = "status") String status);
    
    public int selectOtherSameName(@Param(value = "id")int id,@Param(value = "name")String name);
    
}